public class Animal {
    //    属性:
//    年龄，颜色
    private int age;
    private String color;

    public Animal() {
    }

    public Animal(int age, String color) {
        this.age = age;
        this.color = color;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    //    eat(String something)(something表示吃的东西)看家lookHome方法(无参数)
    public void eat(String something){
        System.out.println();
    }



}
